﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using KMS.Core.domain.model.alert;

namespace KMS.Web.Views.News
{
    public abstract class PostAlertViewModel : AlertViewModel
    {
        private PostAlert _postAlert;

        public string Username
        {
            get
            {
                return _postAlert.Post.Author.Username;
            }
        }

        public string Title
        {
            get
            {
                return _postAlert.Post.Title;
            }
        }

        public string Content
        {
            get
            {
                return _postAlert.Post.Content;
            }
        }

        public PostAlertViewModel(PostAlert postAlert) : base(postAlert)
        {
            _postAlert = postAlert;
        }
    }
}
